package cn.home.fenni.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.fenni.mapper.HomeServiceTagsMapper;
import cn.home.fenni.domain.HomeServiceTags;
import cn.home.fenni.service.IHomeServiceTagsService;

/**
 * 服务包标签Service业务层处理
 * 
 * @author gm
 * @date 2025-04-09
 */
@Service
public class HomeServiceTagsServiceImpl implements IHomeServiceTagsService 
{
    @Autowired
    private HomeServiceTagsMapper homeServiceTagsMapper;

    /**
     * 查询服务包标签
     * 
     * @param tagId 服务包标签主键
     * @return 服务包标签
     */
    @Override
    public HomeServiceTags selectHomeServiceTagsByTagId(Long tagId)
    {
        return homeServiceTagsMapper.selectHomeServiceTagsByTagId(tagId);
    }

    /**
     * 查询服务包标签列表
     * 
     * @param homeServiceTags 服务包标签
     * @return 服务包标签
     */
    @Override
    public List<HomeServiceTags> selectHomeServiceTagsList(HomeServiceTags homeServiceTags)
    {
        return homeServiceTagsMapper.selectHomeServiceTagsList(homeServiceTags);
    }

    /**
     * 新增服务包标签
     * 
     * @param homeServiceTags 服务包标签
     * @return 结果
     */
    @Override
    public int insertHomeServiceTags(HomeServiceTags homeServiceTags)
    {
        return homeServiceTagsMapper.insertHomeServiceTags(homeServiceTags);
    }

    /**
     * 修改服务包标签
     * 
     * @param homeServiceTags 服务包标签
     * @return 结果
     */
    @Override
    public int updateHomeServiceTags(HomeServiceTags homeServiceTags)
    {
        return homeServiceTagsMapper.updateHomeServiceTags(homeServiceTags);
    }

    /**
     * 批量删除服务包标签
     * 
     * @param tagIds 需要删除的服务包标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeServiceTagsByTagIds(Long[] tagIds)
    {
        return homeServiceTagsMapper.deleteHomeServiceTagsByTagIds(tagIds);
    }

    /**
     * 删除服务包标签信息
     * 
     * @param tagId 服务包标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeServiceTagsByTagId(Long tagId)
    {
        return homeServiceTagsMapper.deleteHomeServiceTagsByTagId(tagId);
    }
}
